package com.ruoyi.accounting.domain;

import com.ruoyi.accounting.validator.annotation.ExistBookId;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 账户对象 acc_account
 *
 * @author ruoyi
 * @date 2025-07-13
 */
@Data
public class AccAccount extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 账本id
     */
    @Excel(name = "账本id")
    private Long accountBookId;
    /**
     * 账户名称
     */
    @Excel(name = "账户名称")
    private String accountName;

    /**
     * 账户类型
     */
    @Excel(name = "账户类型")
    private Integer accountType;

    /**
     * 图标链接
     */
    @Excel(name = "图标链接")
    private String iconUrl;

    /**
     * 币种id
     */
    @Excel(name = "币种id")
    private Long currencyId;

    /**
     * 余额
     */
    @Excel(name = "余额")
    private BigDecimal balance;

    /**
     * 是否计入资产
     */
    @Excel(name = "是否计入资产")
    private Integer includeAssets;

    /**
     * 是否隐藏
     */
    @Excel(name = "是否隐藏")
    private Integer hidden;

    /**
     * 父账户id
     */
    @Excel(name = "父账户id")
    private Long parentAccountId;

    /**
     * 发卡行
     */
    @Excel(name = "发卡行")
    private String cardBank;

    /**
     * 卡号后四位
     */
    @Excel(name = "卡号后四位")
    private String cardLastCode;

    /**
     * 账单日
     */
    @Excel(name = "账单日")
    private Long billingDate;

    /**
     * 还款日
     */
    @Excel(name = "还款日")
    private Long repaymentDate;

    /**
     * 是否删除
     */
    private Integer delFlag;


}
